package com.hiultra.archive.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hiultra.archive.mapper.SimfExamineItemMapper;
import com.hiultra.archive.domain.SimfExamineItem;
import com.hiultra.archive.service.ISimfExamineItemService;

/**
 * 审批记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-09-25
 */
@Service
public class SimfExamineItemServiceImpl implements ISimfExamineItemService 
{
    @Autowired
    private SimfExamineItemMapper simfExamineItemMapper;

    /**
     * 查询审批记录
     * 
     * @param itemId 审批记录主键
     * @return 审批记录
     */
    @Override
    public SimfExamineItem selectSimfExamineItemByItemId(Long itemId)
    {
        return simfExamineItemMapper.selectSimfExamineItemByItemId(itemId);
    }

    /**
     * 查询审批记录列表
     * 
     * @param simfExamineItem 审批记录
     * @return 审批记录
     */
    @Override
    public List<SimfExamineItem> selectSimfExamineItemList(SimfExamineItem simfExamineItem)
    {
        return simfExamineItemMapper.selectSimfExamineItemList(simfExamineItem);
    }

    /**
     * 新增审批记录
     * 
     * @param simfExamineItem 审批记录
     * @return 结果
     */
    @Override
    public int insertSimfExamineItem(SimfExamineItem simfExamineItem)
    {
        return simfExamineItemMapper.insertSimfExamineItem(simfExamineItem);
    }

    /**
     * 修改审批记录
     * 
     * @param simfExamineItem 审批记录
     * @return 结果
     */
    @Override
    public int updateSimfExamineItem(SimfExamineItem simfExamineItem)
    {
        return simfExamineItemMapper.updateSimfExamineItem(simfExamineItem);
    }

    /**
     * 批量删除审批记录
     * 
     * @param itemIds 需要删除的审批记录主键
     * @return 结果
     */
    @Override
    public int deleteSimfExamineItemByItemIds(Long[] itemIds)
    {
        return simfExamineItemMapper.deleteSimfExamineItemByItemIds(itemIds);
    }

    /**
     * 删除审批记录信息
     * 
     * @param itemId 审批记录主键
     * @return 结果
     */
    @Override
    public int deleteSimfExamineItemByItemId(Long itemId)
    {
        return simfExamineItemMapper.deleteSimfExamineItemByItemId(itemId);
    }
}
